package tuling.design.mode.singleton;


import lombok.extern.slf4j.Slf4j;

@Slf4j
public class SingletoTest {
    public static void main(String[] args) {
        //懒汉
        log.info("懒汉未创建就调用：={}", LazyLoding.getInstance());
        System.out.println("懒汉未创建就调用：={}" + LazyLoding.getInstance());
        //饿汉
        log.info("饿汉： ={}", HungrySingleto.getInstance());
        System.out.println("懒汉未创建就调用：={}" + HungrySingleto.getInstance());
    }
}
